define(function() {
    return function (renderLogin,menuList,homeGuard){
        const index = 0;
        // 导航区域的二级导航功能
        const navList = ["","phone","clothes","parts","hotSale","breathing","culture","sweep","tnt","service"];
        // 加载头部结构
        $(".topBar").load("../public/header.html",()=>{

            menuList(index,navList);
            
            // 加载登录注册的结构
            renderLogin();

            homeGuard();

        });
    }
});